﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Kcadastro
{
    public partial class teste : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //TextBox1.Text = "\"andre\";\"brancaz\";\"1234\";asdf;\"bxcvbxcvb\";";
                TextBox1.Text = "andre;branca;1,1234;431;\"Cacau;show\";vcxzxcv";
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            TextBox2.Text = "";
            classes.importTXT itxt = new classes.importTXT();
            List<string> r = itxt.linha2campos(TextBox1.Text, ";", "");
            foreach (string s in r)
            {
                TextBox2.Text = TextBox2.Text + s + "\n\r";
            }
        }
    }
}